<?php
include("utils.php");
//main_content("main();");
$mode1 = $_POST['mode1'];
$mode_delete_payment_method = $_POST['mode_delete'];
$mode2=$_POST['mode2'];
if($mode_delete_payment_method == 'delete_payment_method')
{
	delete_payment_method_details();
}
else if($mode1 == 'create_payment_method')
{
	main_content("create_payment_method();");
	//create_payment_method();
}
else if($mode2 == 'edit_advertiser')
{
	insert_payment_method();
}
else
{
main_content("main();");
//main();
}


function delete_payment_method_details()
{
	//print_r($_REQUEST);
	$sql_delete_payment_method="delete from ".PAYMENT_METHODS." where paymentId = '".$_REQUEST['paymentId']."'";
	$exe_delete_payment=mysql_query($sql_delete_payment_method);
	main_content("main();");
}

function insert_payment_method()
{
	$SQL_insert_payment_method = "insert into ".PAYMENT_METHODS." set userId = '".$_SESSION['siteuserId']."', userType = 'A', payment_method = '".$_REQUEST['payment_method']."', payment_name = '".$_REQUEST['paymentName']."', creadit_card_no = '".$_REQUEST['credit_card_no']."', creadit_card_name = '".$_REQUEST['credit_card_name']."', security_code = '".$_REQUEST['securityCode']."', billing_address1 = '".$_REQUEST['billingAddress']."', billing_address2 = '".$_REQUEST['billingAddress2']."', city = '".$_REQUEST['city']."', countryId = '".$_REQUEST['country']."', stateId = '".$_REQUEST['state']."', zip = '".$_REQUEST['zip']."'";

	$EXE_insert_payment_method=mysql_query($SQL_insert_payment_method);

if($EXE_insert_payment_method)
{
	$GLOBALS['regmsg']="Payment Method Has Been Created Successfully";
}
else
{
	$GLOBALS['regmsg']="Failed To Create New Payment Method";
}
main_content("main();");
}
?>
<script language="javascript" src="JavaScripts/create_payment_method.js"></script>
<?php
function main()
{
$select_edit_account="select * from ".PAYMENT_METHODS." where userId = '".$_SESSION['siteuserId']."' AND userType = 'A'";
$exe_edit_account=mysql_query($select_edit_account);
$num=mysql_num_rows($exe_edit_account);
// $row_edit_account=mysql_fetch_array($exe_edit_account);

?>
<script type="text/javascript">
        var GB_ROOT_DIR = "./greybox/";
    </script>

<script type="text/javascript" src="greybox/AJS.js"></script>
    <script type="text/javascript" src="greybox/AJS_fx.js"></script>
    <script type="text/javascript" src="greybox/gb_scripts.js"></script>
    <link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" media="all" />

    <script type="text/javascript" src="static_files/help.js"></script>
    <link href="static_files/help.css" rel="stylesheet" type="text/css" media="all" />
<script>
    insertHeader();
    insertMenu('examples');
</script>
<script language="javascript">
function delete_payment_method(paymentId)

{
	//alert(paymentId);
	var payment_delete = window.confirm("Are you sure to remove the selected PAYMENT method?");
			if( payment_delete == true )
			{
				document.myAccountForm.mode_delete.value='delete_payment_method';
				document.myAccountForm.paymentId.value=paymentId;
				document.myAccountForm.submit();		
			}
	

}

function create_payment_method()

{
	//alert(paymentId);
	document.payment.mode1.value='create_payment_method';
	document.payment.submit();
	
	

}
</script>
<link rel="stylesheet" href="css/style.css" type="text/css" />
<form id="myAccountForm" name="myAccountForm" method="post" action="" onsubmit="return regformvalidation();">

<input type="hidden" name="mode_delete" />
<input type="hidden" name="paymentId" /><br>
<br>

<table width="90%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td valign="top" align="center"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="20%"><?php include("left_pannel.php"); ?></td>
                    <td width="10px">&nbsp;</td>
                    <td valign="top"><table width="98%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="11"><img src="images/PinkBorderTopLeft.jpg" alt="" width="11" height="11"></td>
                              <td class="PinkBoxTopBg"><img src="images/spacer.gif" alt="" width="10" height="11"></td>
                              <td width="11"><img src="images/PinkBorderTopRight.jpg" alt="" width="11" height="11"></td>
                            </tr>
                        </table></td>
                      </tr>
                      <tr>
                        <td class="PinkTwosideBorder"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                              <td class="BoxContent">
<!-- ######## inner design starts###### -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
						  <body id="tab2">
				<ul id="tabnav">
				<!--<li class="tab1"><a href="my_account.php?sid=<?php// echo $_REQUEST['sid'];?>">Summary</a></li>-->
				<li class="tab1"><a href="my_account.php">Summary</a></li>
				<li class="tab2"><a href="edit_advertiser.php">Advertiser</a></li>
				<li class="tab3"><a href="edit_publisher.php">Publisher</a></li>
				</ul>
	</body>
                          <tr>
                            <td>&nbsp;</td>
                          </tr>
                          <tr>
                            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr><td colspan="2" style="color:#FF0000; font-weight:bold;font-size:12px" align="center"><?php if($GLOBALS['regmsg']!=''){ echo $GLOBALS['regmsg'];} ?></td></tr>
                              <tr>
                                <td width="154" valign="top">&nbsp;</td>
                                <td valign="top"><input type="button" value="create payment method" onClick="create_payment_method();">
<!-- #################################### starts ##################################-->
				<table border="1">
 <TR>
  <TD align="center">
   <table width="750" class="login_txt" cellspacing="1" cellpadding="0" border="0">
    <tr style="background-color:gray">
        <th class="listHeader" align="center" nowrap="true">
        <strong>Preferred</strong>
        </th>
        <th class="listHeader" align="center" nowrap="true">
       <strong>Payment Name</strong>
        </th>
        <th class="listHeader" align="center" nowrap="true">
        <strong>Payment Method</strong>
        </th>
        <th class="listHeader" align="center" nowrap="true">
        <strong>Details</strong>
        </th>
	<th class="listHeader" align="center" nowrap="true">
        </th>

       </tr>

	    <?php
		if($num>0)
		{

		$loop=0;
		while($rec_details=mysql_fetch_array($exe_edit_account))
		{
		$loop++;
		if($loop%2 == 0) 
		{
		$class1="normalActive2";
		$class2="normal2";
		$class3="normal2";
		$class4="gray_sitename2";
		}
		else 
		{
		$class1="normalActive";
		$class2="normal";
		$class3="normal";
		$class4="white_sitename2";
		}

		
	    ?>

        <tr onMouseOver="this.className='<?php echo $class1;?>'" onMouseOut="this.className='<?php echo $class2;?>'" class="<?php echo $class3;?>">
        <td class="<?php echo $class4;?>" align="center"><input type="radio" name="prefered_status" <?php if($rec_details['prefered_status'] == 'Y') echo "checked"; ?>></td>
        <td class="<?php echo $class4;?>" align="center"><?php echo $rec_details['payment_name'];?></td>

        <td class="<?php echo $class4;?>" align="center"><?php echo $rec_details['payment_method'];?></td>
        <td class="<?php echo $class4;?>" align="center" height="30"><li>
	<!--<a href="payment_details.php?paymentId=<?php echo $rec_details['paymentId']; ?>" rel="gb_imageset[nice_pics]">Details</a>-->
<!--<a href="payment_details.php?paymentId=<?php echo $rec_details['paymentId']; ?>" title="" rel="gb_page_center[640, 480]">Details</a>-->
<a href="payment_details.php?paymentId=<?php echo $rec_details['paymentId']; ?>" title="Advertiser Payment Details" rel="gb_page_center[500, 250]">Details</a>
</li>
	</td>
	<td align="center"><img src="images/trashcan_icon.gif" alt="" onClick="delete_payment_method('<?php echo $rec_details['paymentId']; ?>');"></td>
        </tr>
	<?php
	}
	} // end if
	else
	{
	?>
	   <tr><TD colspan="10" align="center" class="font-12 black advertise_tableTxt">No records found</TD></tr>

	<?php
	}
	?>

       </table>

    </td>
  </tr>
</table>
<!-- ######################################################## ends ##########################################-->
				</td>
                              </tr>
                            </table></td>
                          </tr>
                        </table>
<!-- ##########inner design ends############################ -->
</td>
                            </tr>
                        </table></td>
                      </tr>
                      <tr>
                        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="11"><img src="images/PinkBorderBottomLeft.jpg" alt="" width="11" height="11"></td>
                              <td class="PinkBoxBottomBg"><img src="images/spacer.gif" alt="" width="10" height="11"></td>
                              <td width="11"><img src="images/PinkBorderBottomRight.jpg" alt="" width="11" height="11"></td>
                            </tr>
                        </table></td>
                      </tr>
                    </table></td>
                    <td>&nbsp;</td>
                    </tr>
                </table></td>
              </tr>
            </table>
</form>
            
<?php
        }
function create_payment_method()
{
		?> 
<script language="JavaScript">
function check_paymentMethod(payment_method)
{
	if(payment_method!='')
	{
		document.getElementById('paymentName_display').style.display='';
		document.getElementById('credit_card_no_dispaly').style.display='';
		document.getElementById('credit_card_name_display').style.display='';
		//document.getElementById('expirationDate_display').style.display='';
		document.getElementById('securityCode_display').style.display='';
		document.getElementById('billingAddress_display').style.display='';
		document.getElementById('billingAddress2_display').style.display='';
		document.getElementById('city_display').style.display='';
		document.getElementById('country_display').style.display='';
		document.getElementById('zip_display').style.display='';
		document.getElementById('state_display').style.display='';
	}
	else
	{
		document.getElementById('paymentName_display').style.display='none';
		document.getElementById('credit_card_no_dispaly').style.display='none';
		document.getElementById('credit_card_name_display').style.display='none';
		//document.getElementById('expirationDate_display').style.display='none';
		document.getElementById('securityCode_display').style.display='none';
		document.getElementById('billingAddress_display').style.display='none';
		document.getElementById('billingAddress2_display').style.display='none';
		document.getElementById('city_display').style.display='none';
		document.getElementById('country_display').style.display='none';
		document.getElementById('zip_display').style.display='none';
		document.getElementById('state_display').style.display='none';
	}
}
</script>

<script language="javascript" src="js/ajax.js"></script>
<script language="javascript" src="js/ajaxresponse.js"></script>
<script language="JavaScript">
function check_country(cId)
{
	//alert(cId);
	sendRequest("ajax/ajaxstate.php","mode=state&countryId="+cId,"POST");
}
</script>
<link rel="stylesheet" href="css/style.css" type="text/css" />
<form id="createAccountForm" name="createAccountForm" method="post" action="" onsubmit="return createformvalidation();">
<input type="hidden" name="mode2" value="edit_advertiser" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td valign="top" align="center"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="20%"><?php include("left_pannel.php"); ?></td>
                    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="11"><img src="images/PinkBorderTopLeft.jpg" alt="" width="11" height="11"></td>
                              <td class="PinkBoxTopBg"><img src="images/spacer.gif" alt="" width="10" height="11"></td>
                              <td width="11"><img src="images/PinkBorderTopRight.jpg" alt="" width="11" height="11"></td>
                            </tr>
                        </table></td>
                      </tr>
                      <tr>
                        <td class="PinkTwosideBorder"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                              <td class="BoxContent">
<!-- ######## inner design starts###### -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">

                      <tr>
                        <td><img src="images/spacer.gif" alt="" width="10" height="7"></td>
                      </tr>
                      <tr>
                        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
						  <body id="tab2">
				<ul id="tabnav">
				<!--<li class="tab1"><a href="my_account.php?sid=<?php// echo $_REQUEST['sid'];?>">Summary</a></li>-->
				<li class="tab1"><a href="my_account.php">Summary</a></li>
				<li class="tab2"><a href="edit_advertiser.php">Advertiser</a></li>
				<li class="tab3"><a href="edit_publisher.php">Publisher</a></li>
				</ul>
	</body>
                          <tr>
                            <td>&nbsp;</td>
                          </tr>
                          <tr>
                            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr><td colspan="2" style="color:#FF0000; font-weight:bold;font-size:12px" align="center"><?php if($GLOBALS['regmsg']!=''){ echo $GLOBALS['regmsg'];} ?></td></tr>
                              <tr>
                                <td width="154" valign="top">&nbsp;</td>
                                <td valign="top"><table border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="100" height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="3"><img src="images/FormNameBoxLeft.jpg" alt="" width="3" height="18"></td>
                                        <td class="FormNameBoxBg" nowrap="true">Payment Method:</td>
                                        <td width="13"><img src="images/FormNameBoxRight.jpg" alt="" width="13" height="18"></td>
                                      </tr>
                                    </table></td>
                                    <td width="14">&nbsp;</td>
                                    <td>
					<select name="payment_method" onChange="check_paymentMethod(this.value)" class="InputBox" id="payment_method">
						<option  value=""  >Select One</option>
						<option value="visa">Visa</option>
						<option value="mastercard">MasterCard</option>
						<option value="discover">Discover</option>
						<option value="amex">Amex</option>
					</select>
					<span id="paymentMethodError" style="display:none; color:#FF0000; font-weight:bold; font-size:11px;"></span>
					</td>
                                    <td width="11">&nbsp;</td>
                                    <td>&nbsp;</td>
                                  </tr>

				  <tr style="display:none" id="paymentName_display">
                                    <td width="100" height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="3"><img src="images/FormNameBoxLeft.jpg" alt="" width="3" height="18"></td>
                                        <td class="FormNameBoxBg" nowrap="true">Payment Name:</td>
                                        <td width="13"><img src="images/FormNameBoxRight.jpg" alt="" width="13" height="18"></td>
                                      </tr>
                                    </table></td>
                                    <td width="14">&nbsp;</td>
                                 <td class="font-12 black advertise_tableTxt"><input name="paymentName" type="text" class="InputBox" id="paymentName" value=""><span id="PaymentNameError" style="display:none; color:#FF0000; font-weight:bold; font-size:11px;"></span></td>
                                    <td width="11">&nbsp;</td>
                                    <td>&nbsp;</td>
                                  </tr>

                                  <tr style="display:none" id="credit_card_no_dispaly">
                                    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="3"><img src="images/FormNameBoxLeft.jpg" alt="" width="3" height="18"></td>
                                        <td class="FormNameBoxBg" nowrap="true">Creadit Card Number:</td>
                                        <td width="13"><img src="images/FormNameBoxRight.jpg" alt="" width="13" height="18"></td>
                                      </tr>
                                    </table></td>
                                    <td>&nbsp;</td>
                                    <td><input name="credit_card_no" type="text" class="InputBox" id="credit_card_no" value=""><span id="credit_card_noError" style="display:none; color:#FF0000; font-weight:bold; font-size:11px;"></span></td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                  </tr>

                                  <tr style="display:none" id="credit_card_name_display">
                                    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="3"><img src="images/FormNameBoxLeft.jpg" alt="" width="3" height="18"></td>
                                        <td class="FormNameBoxBg" nowrap="true">Name on Card:</td>
                                        <td width="13"><img src="images/FormNameBoxRight.jpg" alt="" width="13" height="18"></td>
                                      </tr>
                                    </table></td>
                                    <td>&nbsp;</td>
                                    <td><input name="credit_card_name" type="text" class="InputBox" id="credit_card_name" value=""><span id="credit_card_nameError" style="display:none; color:#FF0000; font-weight:bold; font-size:11px;"></span></td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                  </tr>

                                  <!--<tr style="display:none" id="expirationDate_display">
                                    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="3"><img src="images/FormNameBoxLeft.jpg" alt="" width="3" height="18"></td>
                                        <td class="FormNameBoxBg">Expiration Date:</td>
                                        <td width="13"><img src="images/FormNameBoxRight.jpg" alt="" width="13" height="18"></td>
                                      </tr>
                                    </table></td>
                                    <td>&nbsp;</td>
                                    <td><span id="expirationDateError" style="display:none; color:#FF0000; font-weight:bold; font-size:11px;"></span></td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                  </tr>-->

                                  <tr style="display:none" id="securityCode_display">
                                    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="3"><img src="images/FormNameBoxLeft.jpg" alt="" width="3" height="18"></td>
                                        <td class="FormNameBoxBg">Security Code:</td>
                                        <td width="13"><img src="images/FormNameBoxRight.jpg" alt="" width="13" height="18"></td>
                                      </tr>
                                    </table></td>
                                    <td>&nbsp;</td>
                                    <td><input name="securityCode" type="text" class="InputBox" id="securityCode" value="" maxlength="4"><span id="securityCodeError" style="display:none; color:#FF0000; font-weight:bold; font-size:11px;"></span></td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                  </tr>

                                  <tr style="display:none" id="billingAddress_display">
                                    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="3"><img src="images/FormNameBoxLeft.jpg" alt="" width="3" height="18"></td>
                                        <td class="FormNameBoxBg">Billing Address:</td>
                                        <td width="13"><img src="images/FormNameBoxRight.jpg" alt="" width="13" height="18"></td>
                                      </tr>
                                    </table></td>
                                    <td>&nbsp;</td>
                                    <td><input name="billingAddress" type="text" class="InputBox" id="billingAddress" value=""><span id="billingAddressError" style="display:none; color:#FF0000; font-weight:bold; font-size:11px;"></span></td>
                                <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                  </tr>

                                  <tr style="display:none" id="billingAddress2_display">
                                    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="3"><img src="images/FormNameBoxLeft.jpg" alt="" width="3" height="18"></td>
                                        <td class="FormNameBoxBg">Billing Address2:</td>
                                        <td width="13"><img src="images/FormNameBoxRight.jpg" alt="" width="13" height="18"></td>
                                      </tr>
                                    </table></td>
                                    <td>&nbsp;</td>
                                    <td><input name="billingAddress2" type="text" class="InputBox" id="billingAddress2" value=""><span id="billingAddress2Error" style="display:none; color:#FF0000; font-weight:bold; font-size:11px;"></span></td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                  </tr>

                                  <tr style="display:none" id="city_display">
                                    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="3"><img src="images/FormNameBoxLeft.jpg" alt="" width="3" height="18"></td>
                                        <td class="FormNameBoxBg">City :</td>
                                        <td width="13"><img src="images/FormNameBoxRight.jpg" alt="" width="13" height="18"></td>
                                      </tr>
                                    </table></td>
                                    <td>&nbsp;</td>
                                    <td><input name="city" type="text" class="InputBox" id="city" value=""><span id="cityError" style="display:none; color:#FF0000; font-weight:bold; font-size:11px;"></span></td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                  </tr>
<?php
$select_country="select * from ".COUNTRY." where countryId != 220 order by countryId";
$exe_country=mysql_query($select_country);
?>
				<tr style="display:none" id="country_display">
                                    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="3"><img src="images/FormNameBoxLeft.jpg" alt="" width="3" height="18"></td>
                                        <td class="FormNameBoxBg">Country :</td>
                                        <td width="13"><img src="images/FormNameBoxRight.jpg" alt="" width="13" height="18"></td>
                                      </tr>
                                    </table></td>
                                    <td>&nbsp;</td>
                                    <td><select name="country" onChange="check_country(this.value)" class="InputBox" id="country">
						<option value="">Slect a country</option>
						<option  value="220">United States</option>
						<?php
						while($row_country=mysql_fetch_array($exe_country))
						{
						?>
						<option value="<?php echo $row_country['countryId']; ?>"><?php echo $row_country['countryName']; ?></option>
						<?php
						}
						?>
					</select><span id="countryError" style="display:none; color:#FF0000; font-weight:bold; font-size:11px;"></span></td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                  </tr>

				<tr style="display:none" id="zip_display">
                                    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="3"><img src="images/FormNameBoxLeft.jpg" alt="" width="3" height="18"></td>
                                        <td class="FormNameBoxBg">Zip :</td>
                                        <td width="13"><img src="images/FormNameBoxRight.jpg" alt="" width="13" height="18"></td>
                                      </tr>
                                    </table></td>
                                    <td>&nbsp;</td>
                                    <td><input name="zip" type="text" class="InputBox" id="zip" value=""><span id="zipError" style="display:none; color:#FF0000; font-weight:bold; font-size:11px;"></span></td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                  </tr>

				<tr style="display:none" id="state_display">
                                    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="3"><img src="images/FormNameBoxLeft.jpg" alt="" width="3" height="18"></td>
                                        <td class="FormNameBoxBg">State :</td>
                                        <td width="13"><img src="images/FormNameBoxRight.jpg" alt="" width="13" height="18"></td>
                                      </tr>
                                    </table></td>
                                    <td>&nbsp;</td>
                                    <td><select name="state" class="InputBox" id="stateId">
					</select><span id="stateError" style="display:none; color:#FF0000; font-weight:bold; font-size:11px;"></span></td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                  </tr>

                                  <tr>
                                    <td height="30">&nbsp;</td>
                                    <td>&nbsp;</td>
                                    <td align="right" valign="bottom"><input name="Submit" type="submit" class="SubmitInputButton" id="submit" value="Save"><!--<input type="hidden" name="SubmitForm" id="SubmitForm" value="Register" />--></td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                  </tr>

                                </table></td>
                              </tr>
                            </table></td>
                          </tr>
                        </table></td>
                      </tr>
                      <tr>
                        <td><img src="images/spacer.gif" alt="" width="10" height="7"></td>
                      </tr>
                    </table>
<!-- ##########inner design ends############################ -->
</td>
                            </tr>
                        </table></td>
                      </tr>
                      <tr>
                        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="11"><img src="images/PinkBorderBottomLeft.jpg" alt="" width="11" height="11"></td>
                              <td class="PinkBoxBottomBg"><img src="images/spacer.gif" alt="" width="10" height="11"></td>
                              <td width="11"><img src="images/PinkBorderBottomRight.jpg" alt="" width="11" height="11"></td>
                            </tr>
                        </table></td>
                      </tr>
                    </table></td>
                    <td width="20%">&nbsp;</td>
                    </tr>
                </table></td>
              </tr>
            </table>
</form>
<?php
}
?>
<form name="payment" method="POST" id="payment" action="">
<input type="hidden" name="mode1" value="">
</form>